/************************* for CVS only ************
*$Id: global.h,v 1.5 2006/09/11 16:46:57 cvsroot Exp $
*$Log: global.h,v $
*Revision 1.5  2006/09/11 16:46:57  cvsroot
*modify it
*
*Revision 1.4  2006/09/11 16:35:15  cvsroot
*delete some comments
*
*Revision 1.3  2006/09/11 16:29:15  cvsroot
*Test CVS keywork replace
*
************************************************/

#ifdef _IN_MAIN
#define _my_extern   
#else 
#define _my_extern extern
#endif

_my_extern int f_debug;
_my_extern int f_report;
_my_extern int timeout;
_my_extern char  *ifName;
_my_extern int  authMethod;
_my_extern FILE * info_log;
_my_extern FILE * acs_log;


_my_extern char * neighbor_file;
 



_my_extern struct service services;
_my_extern struct node  neighbors;
_my_extern struct route routes;
_my_extern struct access_list4 acl4;

_my_extern int totalThreads;
_my_extern pthread_mutex_t mutex_totalThreads, mutex_acl4;
_my_extern pthread_mutex_t mutex_info, mutex_access;

#define MAX_LISTEN 20


struct ThreadArgs
{
    unsigned char version;
    unsigned short port;
    int clntSock;
    in_addr_t clntIP;
    struct service_item *p_srvc;
};
